package com.skivingcloud.report.bigscreen.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 报表看板
 * </p>
 *
 * @author skivingcloud
 * @since 2022-07-29
 */
@TableName("sys_report_dashboard")
@ApiModel(value = "ReportDashboard对象", description = "报表看板")
public class ReportDashboard implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("报表编码")
    private String reportCode;

    @ApiModelProperty("看板标题")
    private String title;

    @ApiModelProperty("宽度px")
    private Long width;

    @ApiModelProperty("高度px")
    private Long height;

    @ApiModelProperty("背景色")
    private String backgroundColor;

    @ApiModelProperty("背景图片")
    private String backgroundImage;

    @ApiModelProperty("工作台中的辅助线")
    private String presetLine;

    @ApiModelProperty("自动刷新间隔秒")
    private Integer refreshSeconds;

    @ApiModelProperty("0--已禁用 1--已启用")
    private String enableFlag;

    @ApiModelProperty("0--未删除 1--已删除")
    private String deleteFlag;

    @ApiModelProperty("排序，降序")
    private Integer sort;

    @ApiModelProperty("创建人")
    private String creater;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("最后修改人")
    private String modUser;

    @ApiModelProperty("修改时间")
    private LocalDateTime modTime;

    @ApiModelProperty("版本")
    private Integer version;

    @TableField(exist = false)
    List<ReportDashboardWidgetDto> widgets;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getReportCode() {
        return reportCode;
    }

    public void setReportCode(String reportCode) {
        this.reportCode = reportCode;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public Long getWidth() {
        return width;
    }

    public void setWidth(Long width) {
        this.width = width;
    }
    public Long getHeight() {
        return height;
    }

    public void setHeight(Long height) {
        this.height = height;
    }
    public String getBackgroundColor() {
        return backgroundColor;
    }

    public void setBackgroundColor(String backgroundColor) {
        this.backgroundColor = backgroundColor;
    }
    public String getBackgroundImage() {
        return backgroundImage;
    }

    public void setBackgroundImage(String backgroundImage) {
        this.backgroundImage = backgroundImage;
    }
    public String getPresetLine() {
        return presetLine;
    }

    public void setPresetLine(String presetLine) {
        this.presetLine = presetLine;
    }
    public Integer getRefreshSeconds() {
        return refreshSeconds;
    }

    public void setRefreshSeconds(Integer refreshSeconds) {
        this.refreshSeconds = refreshSeconds;
    }
    public String getEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(String enableFlag) {
        this.enableFlag = enableFlag;
    }
    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public String getModUser() {
        return modUser;
    }

    public void setModUser(String modUser) {
        this.modUser = modUser;
    }
    public LocalDateTime getModTime() {
        return modTime;
    }

    public void setModTime(LocalDateTime modTime) {
        this.modTime = modTime;
    }
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    /**
     * @return the reportBigscreenWidget
     */
    public List<ReportDashboardWidgetDto> getWidgets() {
        return widgets;
    }

    /**
     * @param reportBigscreenWidget the reportBigscreenWidget to set
     */
    public void settWidgets(List<ReportDashboardWidgetDto> widgets) {
        this.widgets = widgets;
    }

    @Override
    public String toString() {
        return "ReportDashboard{" +
            "id=" + id +
            ", reportCode=" + reportCode +
            ", title=" + title +
            ", width=" + width +
            ", height=" + height +
            ", backgroundColor=" + backgroundColor +
            ", backgroundImage=" + backgroundImage +
            ", presetLine=" + presetLine +
            ", refreshSeconds=" + refreshSeconds +
            ", enableFlag=" + enableFlag +
            ", deleteFlag=" + deleteFlag +
            ", sort=" + sort +
            ", creater=" + creater +
            ", createTime=" + createTime +
            ", modUser=" + modUser +
            ", modTime=" + modTime +
            ", version=" + version +
        "}";
    }
}
